
package org.finegold.core.netty.core.model;

import lombok.Data;

/**
 * Description: 请求对象
 *
 * @author QinYueFeng
 * @since: 1.0
 * Create Date Time: 2018/7/4 16:22
 * Update Date Time:
 * @see
 */
@Data
public class ServerRequest {

    /**
     * 模块号
     */
    private short module;

    /**
     * 命令号
     */
    private short cmd;

    /**
     * 数据
     */
    private byte[] data;

    public static ServerRequest valueOf(short module, short cmd, byte[] data) {
		ServerRequest request = new ServerRequest();
        request.setModule(module);
        request.setCmd(cmd);
        request.setData(data);
        return request;
    }
}
